using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class tbs_ReportsWithNoSecMap : EntityTypeConfiguration<tbs_ReportsWithNoSec>
    {
        public tbs_ReportsWithNoSecMap()
        {
            // Primary Key
            this.HasKey(t => t.Command);

            // Properties
            this.Property(t => t.Command)
                .IsRequired()
                .HasMaxLength(232);

            // Table & Column Mappings
            this.ToTable("tbs_ReportsWithNoSec");
            this.Property(t => t.Command).HasColumnName("Command");
        }
    }
}
